var app = getApp();
Page({
  data: {
    userInfo: {},
    openid:app.globalData.openid
  },
  onLoad: function (options) {
    wx.setNavigationBarTitle({
      title: '我的'
    })
    this.setData({
      userInfo: app.globalData.userInfo,
    })

  },
  getAddress: function () {
    var that = this
    wx.chooseAddress({

      success: function (res) {
        console.log(res);

        that.setData({
          addobj: res,
          // address: res.data,
          ausername: res.userName,
          amobile: res.telNumber,
          area: res.provinceName + res.cityName + res.countyName,
          addresss: res.detailInfo
        });


      }
    });
  },

})